#ifndef SOURCESDATA_H
#define SOURCESDATA_H

#include <QObject>
#include <QMetaType>
#include <QMetaObject>
#include <QMetaEnum>

class SourcesData : public QObject
{
    Q_OBJECT
public:
    QString type;
    QStringList archs;
    QString sign;
    QString url;
    QString codename;
    QStringList repos;

public:
    SourcesData(QObject *parent = nullptr);
    SourcesData(const SourcesData &src, QObject *parent = nullptr);
    ~SourcesData();

    SourcesData &operator=(const SourcesData &src);
    bool operator==(const SourcesData &dst) const;

    QString toSourcesList() const;
private:
    void Initialization();
    SourcesData &Copy(const SourcesData &src);
};
Q_DECLARE_METATYPE(SourcesData)

#endif // SOURCESDATA_H
